'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/user/login', controller.user.login)
  router.post('/reg/register', controller.reg.register)
  router.post('/role/rolelist', controller.role.rolelist)
  router.post('/upLoad/local', controller.upload.local)
  router.post('/upLoad/oss', controller.upload.oss)

};
